package View;

import java.awt.Image;

/**
 *
 * @author elach_000
 */
public class Tile {
        static public Image TileSetTexture;
        static public Image qgTile;
        static public int TileWidth = 64;
        static public int TileHeight = 64;
        static public int TileStepX = 64;
        static public int TileStepY = 16;  
        static public int OddRowXOffset = 32;
        static public int HeightTileOffset = 32;

        static public int[] GetUpperLeftXY(int tileIndex)
        {
            int tileY = tileIndex / (TileSetTexture.getWidth(null) / TileWidth);
            int tileX = tileIndex % (TileSetTexture.getWidth(null) / TileWidth);
            
            int[] posXY = {tileX * TileWidth,tileY * TileHeight};
            
            return posXY;
        }
}
